package com.cuicuisha.gxyp.product.mapper;

import com.cuicuisha.gxyp.model.dto.product.ProductSkuDto;
import com.cuicuisha.gxyp.model.entity.product.ProductSku;

import java.util.List;

/**
 * ClassName: ProductSkuMapper
 * Description:
 *
 * @Author 脆脆鲨
 * @Create 2024-09-21 13:10
 * @Version 1.0
 */
public interface ProductSkuMapper {
    List<ProductSku> findProductSkuBySale();

    List<ProductSku> findByPage(ProductSkuDto productSkuDto);

    ProductSku getById(Long skuId);

    List<ProductSku> findByProductId(Long productId);

    void updateSale(Long skuId, Integer num);
}
